package com.tbit.uqbike.object.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.web.multipart.MultipartFile;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;
import java.util.List;

/**
 * @program: uqbike-manager-new
 * @description: 语音升级任务
 * @author: Jing
 * @create: 2021-05-24 16:05
 **/
@AllArgsConstructor
@NoArgsConstructor
@ToString
@Data
public class Task {
    /**
     * 任务id
     */
    private Integer taskId;
    /**
     * 任务id集合
     */
    private List<Integer> taskIds;
    /**
     * 区域id
     */
    @NotNull(message = "请选择运营区域")
    private Integer accountId;
    /**
     * 设备列表
     */
    private List<String> terMnoList;
    /**
     * 设备列表字符串
     */
    @NotBlank(message = "请输入车辆编号")
    private String terMnos;
    /**
     * 升级模块
     */
    @NotBlank(message = "请选择语音类型")
    private String module;
    /**
     * 开始时间
     */
    @NotNull(message = "请填写任务开始时间")
    private Long aTime;
    /**
     * 结束时间
     */
    @NotNull(message = "请填写任务结束时间")
    private Long eTime;
    /**
     * 任务开始时间
     */
    private Date startTime;
    /**
     * 任务添加时间
     */
    private Date addTime;
    /**
     * 客户代码
     */
    private String customer;
    /**
     * 语音升级文件
     */
    @NotNull(message = "请上传语音文件")
    private MultipartFile file;

    private List<TimeLimit> timeList;

    private String timeLists;

    private String terMno;
    /**
     * 修改状态
     */
    private Integer status;

    private Date exeStartTime;

    private Date exeEndTime;

    private String exeRet;
    //用户自定义语音id
//    private Integer customVoiceId;

    public Task(Integer taskId, Integer accountId, Date startTime, Date addTime) {
        this.taskId = taskId;
        this.accountId = accountId;
        this.startTime = startTime;
        this.addTime = addTime;
    }

    public Task(Integer taskId) {
        this.taskId = taskId;
    }
}
